cmake_minimum_required(VERSION 3.15)
project(test_package LANGUAGES C)

find_package(hdr_histogram REQUIRED CONFIG)

add_executable(${PROJECT_NAME} test_package.c)
if(TARGET hdr_histogram::hdr_histogram_static)
    target_link_libraries(${PROJECT_NAME} PRIVATE hdr_histogram::hdr_histogram_static)
else()
    target_link_libraries(${PROJECT_NAME} PRIVATE hdr_histogram::hdr_histogram)
endif()
